<template>
	<el-container>
		<el-main class='x-main-edit'>
			<el-form ref="form" :rules="form_rules" :model="form" size="mini" label-width="15%">
				<el-tabs type="border-card" v-model="page_tag">
					<!---->
					<!---->
					<el-tab-pane :label="page_info.title" name="1">
						<el-form-item label="发货通知">
							<Tmplmsg ref="tmplmsg" :uix="form.abc_str_00" app_id="prize" :id_src="form.abc_str_00"></Tmplmsg>
							<div class="x-alert">
								<span>公众号通知，没配置关联不会推送</span>
							</div>
						</el-form-item>
					</el-tab-pane>
					<!---->
					<!---->
					<el-tab-pane v-if="false" label="高级配置" name="2">
						<!--						<el-form-item label="科技侠-帐号" prop="s_account" ref="s_account">-->
						<!--							<el-input class="x-input-60" v-model="form.s_account" placeholder="帐号"></el-input>-->
						<!--						</el-form-item>-->
					</el-tab-pane>
					<!---->
					<!---->
				</el-tabs>
			</el-form>
			<!---->
			<!---->
			<!-- 按钮部分 -->
			<div class="save_wrap">
				<el-button @click="g_page.funcBack" size="mini">返回</el-button>
				<el-button type="success" @click="g_page.funcSave" size="mini">保存</el-button>
				<!--				<el-checkbox style="margin-left: 10px;" label="保存后停留" v-model="checked"/>-->
			</div>
			<!---->
			<!---->
			<!---->
		</el-main>
	</el-container>
</template>

<script>
	import ItemList from '@/components/CompItem/ItemList'
	import Tmplmsg from '@/components/CompTmplmsg/Tmplmsg'

	export default {
		components: {
			Tmplmsg,
			ItemList
		},
		data() {
			let page_data = {}
			//
			page_data = this.g_cc.funcGetInitData(page_data)
			//
			return page_data
		},
		mounted() {
			console.log('mounted')
			console.log(this.$route.query)

			this.g_page.funcSetVue(this)
			//
			this.g_page.funcSetApiUrlEdit('/xadmin/prize/prize__setting')
			this.g_page.funcSetApiUrlSave('/xadmin/prize/prize__setting/save')
			let page = this
			//验证
			this.form_rules = {
				__test: [{
					required: true,
					message: '请输入原密码',
					trigger: 'blur'
				}]
			}

			let data = this.$route.query
			this.g_page.funcEdit(data)
		},
		methods: {
			funcShowDialogAfter() {
				console.log('funcShowDialogAfter')
				this.$nextTick(() => {
					// this.$refs['item_list_00'].funcInit(this.form.abc_str_01)
				})

			}
			//保存之前
		}
	}
</script>
